﻿using Flame.Dlr;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Flame.Controls
{
   public class TextInputCreator
    {
        Type _itextinputResolverType;
        public Manager Manager { get; private set; }
       // Type _defaultLanguage;

        public TextInputCreator(Type itextinputResolverType,  Manager compilersManager)
        {
            _itextinputResolverType = itextinputResolverType;

            //Manager.
            //_defaultLanguage = Languages.Get(defaultLanguage);
            Manager = compilersManager;
        }

        public ATextInput CreateATextInput()
        {

            return (ATextInput)Activator.CreateInstance(_itextinputResolverType, Manager);
        }
    }
}
